function intoConsole() {
	selectContent(4);
}

function getInfos() {
	if(nowContentIndex == 4){
		send("GET", "/@ServerConsole", true, "", showInfos, null);
	}
}

function showInfos(text) {
	var infos = JSON.parse(text);
	var cons = document.getElementById("ConsoleText");
	for(let i=0;i<infos.length;i++){
		var info = infos[i];
		cons.innerHTML += infos[i] + "\r\n";
	}
	if(infos.length > 0){
		cons.scrollTop = cons.scrollHeight;
	}
}

function analogHttp() {
	var analogHttp = document.getElementById("AnalogHTTP");
	var analogText = analogHttp.value;
	analogText = analogText.replace("\n","\r\n");
	send("POST","/@ServerConsole",true,analogText);
}

setInterval(getInfos, 500);

